﻿
using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microhard.WeixinMP.Impls;
using Microhard.WeixinMP.Interfaces;
using Microhard.WeixinMP.Models;

namespace TestProject
{
    [TestClass]
    public class WXMP
    {
        [TestMethod]
        public void TestMethod1()
        {
            //HandshakeImpl hi = new HandshakeImpl();
            //IWeixinMPHtmlParser<WeixinFakeLogin_Result> im1 = new Web_LoginParserImpl();
            //IWeixinMPHtmlParser<List<WeixinUserBasicModel>> im2 = new Web_ParseUsers();
            //IWeixinMPHtmlParser<WeixinUserModel> im3 = new Web_ParseUserDetail();
            //IWeixinMPHtmlParser<WeixinFakeSendResult> im4 = new Web_SendedResultParse();
            //IWeixinMPHtmlParser<List<WXMPMessageWithFakeIDModel>> im5 = new Web_MessageResultParser();

            //var back = hi.Login("48482293@qq.com", "123@abc", im1, false);
            //var list = hi.GetTop50Message("48482293@qq.com", "123@abc", im5);
            //IWXMPUser wmu = new WXMPUserImpl();
            //RequestServiceModel msg = new RequestServiceModel();
            //msg.MsgCreateTime = "1374226174";
            //msg.MsgType = "text";
            //msg.FromUserName = "o1_Hcjq0UT9IfJPSzvHS1K7I6LHw";
            //msg.Txt = new WeixinBaseData<WeixinTxt>();
            //msg.Txt.Content = new WeixinTxt();
            //msg.Txt.Content.Content = "1";

            //var newUsers = wmu.CheckUserByCreateTimeAndContent(list, msg);


            //hi.SendMessage("932486462@qq.com", "123@abc", "59122365", "使用microhard程序发送" + DateTime.Now, im4, im1, true);
            //var users = hi.GetAllUser("932486462@qq.com", "123@abc", im2, im3, im1);
            //hi.UploadImage("932486462@qq.com", "123@abc");
        }
    }
}
